e = "Python"
length = len(e)
if length >= 3:
    head = e[0:3]
    print(head * 3)
else:
    print(e * 3)
e = "hi"
length = len(e)
if length >= 3:
    head = e[0:3]
    print(head * 3)
else:
    print(e * 3)